home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK2.toast / Development Kits (Disc 2) / QuickTime™ VR 2.0 SDK / QTVR C⁄C++ Runtime API / Sample Code / QTVRSamplePlayer / src / app.h < prev    next >
Encoding:
Text File  |  1997-05-22  |  1.5 KB  |  59 lines  |  [TEXT/CWIE]

  1. // Application-global prototypes and variables
  2.  
  3. #ifndef __APP__
  4. #define __APP__
  5.  
  6. // System headers
  7. #include <Events.h>
  8. #include <Files.h>
  9. #include <Menus.h>
  10.  
  11. // Global constants
  12.  
  13. // Globals (globals.c)
  14.  
  15. typedef struct {
  16.     Boolean                    Done;
  17. } GlobalsStruct;
  18.  
  19. extern    GlobalsStruct        g;
  20.  
  21.  
  22. // Event handling (event.c)
  23.  
  24. void EventLoop();
  25.  
  26.  
  27. // Initalization and Deinitialization code (init.c)
  28.  
  29. void DoInit(void);    // Run the program's startup sequence
  30. void DeInit(void);    // Run the program's shutdown sequence
  31.  
  32.  
  33. // Miscellaneous Macintosh Utilities (MacUtils.c)
  34. void EnDisItem(MenuHandle mh, short item, Boolean enable);
  35. void SetCheckMark(MenuHandle mh, short item, Boolean enable);
  36. void UserMessage(Str255 theMessage);
  37. Boolean UserQuestion(Str255 theMessage);
  38.  
  39.  
  40. // Menu code (menus.c)
  41.  
  42. // Menu Handling
  43. void MenuBarInit();                    // Initialize the Menu Bar
  44. void DoMenuChoice(long menuResult);    // Handle Menu selections
  45. void DoMenuSetup(void);    // Set up the menus to handle a hotkey or menu selection
  46.  
  47.  
  48. // QuickTime Movie handling code (qtmovies.c)
  49.  
  50. void StandardFileOpenMovie();    // Get a movie using the Standard File Package
  51. OSErr OpenMovieInWindow(FSSpec *theFSSpec);    // Given an FSSpec, open a movie and place it in a document window
  52. void CloseMovieByWindow(WindowPtr theWindow);    // Close a movie from a WindowPtr
  53. void CloseAllMovies();            // Close all open movie documents
  54. Boolean CheckMovieControllers(EventRecord *theEvent);    // Run an event by all the active movie controllers
  55. void MyMoviesTask(WindowPtr theWindow);
  56.  
  57.  
  58. #endif    // #ifndef __APP__
  59.